//
//  AppConfig.h
//  chemayi
//
//  Created by iosdev2 on 15/6/24.
//  Copyright (c) 2015年 iosdev2. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UIColor+Hex.h"

/************** 字体 ***************/
#define APP_FONT_TITLE         [UIFont fontWithName:@"Heiti SC" size:20]
#define APP_FONT_SUBTITLE      [UIFont fontWithName:@"Heiti SC" size:22]
#define APP_FONT_BUTTON        [UIFont fontWithName:@"Heiti SC" size:16]
#define APP_FONT_CELL          [UIFont fontWithName:@"Heiti SC" size:16]
/************** 字体 ***************/

/************ 数据结构处理 **************/
#define NotNullString(String) (String ? [String description] : @"")
#define NotNullArray(Array) ([Array isKindOfClass:[NSArray class]] ? Array : @[])
#define NotNullDictionary(Dictionary) ([Dictionary isKindOfClass:[NSDictionary class]] ? Dictionary : @{})
#define ObjectInArray(Array, Index) ( ([Array count] > Index) ? Array[Index] : nil )


//跟用户相关联的字段
#define IS_LOGIN                @"isLogin"

#define USER_ID                 @"UserID"                  //用户主键ID
#define LOGIN_NAME              @"LoginName"               //登录名称
#define LOGIN_PASS              @"LoginPass"
#define USER_NMAE               @"UName"                   //用户名字
#define USER_PHONE              @"UTelPhone"               //用户号码
#define USER_EMAIL              @"UEMail"                  //用户Email
#define USER_PhoneChecked       @"PhoneChecked"            //用户手机认证（true 或者 false）
#define USER_EmailChecked       @"EmailChecked"            //用户邮箱Email认证（true 或者 false）
#define USER_RegDate            @"RegDate"                 //用户注册时间
#define USER_LastLoginDate      @"LastLoginDate"           //用户最近一次登录时间
#define USER_RegIP              @"RegIP"                   //注册时候的IP
#define USER_LastLoginIP        @"LastLoginIP"             //最近一次登录时候的IP
#define USER_UserState          @"UserState"               //用户状态
#define USER_UserType           @"UserType"                //用户类型
#define USER_Province           @"Province"                //所在省份
#define USER_City               @"City"                    //城市
#define USER_Address            @"Address"                 //地址
#define USER_ISPAYPASSWORD      @"isPayPassWord"           //是否已经设置了交易密码
#define USER_UHeadImage         @"UHeadImage"              //头像地址
#define APP_Version             @"APPversion"              //APPversion版本号
#define APP_VersionPath         @"APPversionPath"          //APPversion版本更新地址
//用户存储信息
#define USER_suggestResults     @"suggestResults"          //搜索历史

//NSNotificationCenter通知值
#define NFC_ADDADDRESS          @"addAddress"              //添加收货地址返回后刷新列表
#define NFC_returnArea          @"returnArea"              //选择收货地址返回后组合
#define NFC_UpdateHeadImage     @"UpdateHeadImage"         //通知用户中心更新头像
#define NFC_reloadOrder         @"reloadOrder"             //通知订单列表刷新
#define NFC_RefreshPrepayment   @"RefreshPrepayment"       //通知刷新预付款数据
#define NFC_ConfirmReceiving    @"ConfirmReceiving"        //通知订单列表刷新
#define NFC_CommentList         @"CommentList"             //通知订单评论列表刷新
#define NFC_paySuccess          @"paySuccess"              //通知订单列表刷新数据（支付成功）
#define NFC_didBecomeActive     @"DidBecomeActive"         //通知再次进入手机时触发


#define USER_isFirstInto        @"isFirstInto"             //是否是第一次进入APP

//是不是5S
#define IS_IPHONE_5 ( fabs( ( double )[ [ UIScreen mainScreen ] bounds ].size.height - ( double )568 ) < DBL_EPSILON )

//友盟APPKey
#define UmengAppkey @"556e595667e58e1469005494"


//APP客户端标识字段
#define fromClient_URL @"/index?fromClient=2"

//微信开发账号ID
#define WeiXin_AppID @"wx3a625486d6bc113e"
#define WeiXin_AppSecret @"953f4a248e01b3612d8c870d5d8bjy12"
//微信商户号
#define WeiXin_PartnerID @"1246886601"

//新浪微博
#define Sina_AppKey @"2651276991"
#define Sina_AppSecret @"6a06f1157f47657136dc2cfa5d6213e8"

//QQ空间
#define Qzone_AppID @"1104789030"
#define Qzone_AppSecret @"0p95UVmuzf7REssZ"

//设置色标
#define GET_COLOR(r,g,b) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1]

//APP主色调
#define UIMainColor         [UIColor colorWithRed:193/255.0 green:0/255.0 blue:0/255.0 alpha:1.0]
#define UIMainColorNEW      [UIColor colorWithHexString:@"#ff0033"]
#define UIMainNavi          [UIColor colorWithHexString:@"#EEEEEE"]
#define UIMainVIPColorOld    GET_COLOR(227,20,128)
#define UIMainVIPColor      [UIColor colorWithHexString:@"#ff0033"]
#define ColorForTitleTextSelect  [UIColor colorWithRed:46/255.0 green:167/255.0 blue:88/255.0 alpha:1.0]


//幸运大转盘
#define APP_LuckyWheel @"http://app.bjy12.com/roulette/appindex?uid="

//系统配置的属性
#define top_title [UIFont fontWithName:@"Helvetica" size:18]
#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v)  ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)


//顶部栏高度
#define top_bar_height 64
//底部栏的高度
#define bottom_bar_height 50
#define bottom_bar_image_width 28
#define widthToHeight_AD 2.5
// 倒计时
#define COUNT_DOWN_TIME 60
//
#define PAGESIZE 20
//获取屏幕的大小
#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)
#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)
//倒计时用到
#define TRANSFORM_TO_INTEGER(i) (long)(i)

//广播name
#define REFRESH_USER_DATA       @"userDataRefresh"
#define POPWINDOW               @"popwindow"


//首页字体设置
#define home_cell_title_color   @"1e1e1e"
#define home_cell_button1_color @"ff8200"
#define home_cell_button2_color @"535353"

//颜色代码
#define COLOR_codeCadius GET_COLOR(35,114,254)//验证码按钮圆角边的颜色
#define COLOR_gray GET_COLOR(224,224,224)//验证码按钮背景灰色的颜色
#define COLOR_BtnViewBG GET_COLOR(223,224,226)//Button背景颜色
#define COLOR_BGView GET_COLOR(241,245,246) //所有界面背景颜色

//通用
#define ReturnArray             @"Array"
#define ReturnResult            @"returnResult"
#define ReturnMessage           @"returnMessage"

//TabBar高度
#define Tabbar_Height 49

//用于友盟页面访问统计的页面名称
#define Tag_Index @"商城首页"
#define Tag_ShoppingCart @"购物车"
#define Tag_Category @"产品分类"
#define Tag_Comment @"评价晒单"
#define Tag_HelpCenter @"帮助中心分类首页"
#define Tag_HelpContent @"帮助中心文章列表或正文(网页)"
#define Tag_MyCollection @"我的收藏"
#define Tag_RecoveredPassWord @"找回密码"
#define Tag_CheckUpdate @"版本信息和退出登录"
#define Tag_AboutUs @"关于我们"
#define Tag_Share @"分享百巨云APP"
#define Tag_MyInvite @"我的盟友(我邀请的人)"
#define Tag_MyOrder @"我的订单列表"
#define Tag_OrderDetail @"订单详情"
#define Tag_MyWallet @"我的钱包"
#define Tag_MyPoint @"我的积分"
#define Tag_PointLog @"积分记录"
#define Tag_Prepayment @"预付款"
#define Tag_ToPrepayment @"预付款充值"
#define Tag_Money @"账户余额"
#define Tag_Withdraw @"提现申请"
#define Tag_WasteBook @"财务记录"
#define Tag_MyCoupon @"购物券"
#define Tag_CouponLog @"购物券记录"
#define Tag_MyBankCard @"我的银行卡"
#define Tag_AddBankCard @"编辑银行卡"
#define Tag_SelectBank @"选择银行"
#define Tag_MyAlipay @"我的支付宝"
#define Tag_EditAlipay @"编辑支付宝"
#define Tag_ChangePhone @"更换手机号码"
#define Tag_ChangeLoginPassword @"修改登录密码"
#define Tag_SetPayPassword @"创建支付密码"
#define Tag_ChangePayPassword @"更改支付密码"
#define Tag_FindBackPayPassword @"找回支付密码"
#define Tag_Address @"收货地址"
#define Tag_AddAddress @"编辑收货地址"
#define Tag_UserSetting @"账户设置"
#define Tag_UserRegister @"用户注册"
#define Tag_UserLogin @"用户登录"
#define Tag_UserCenter @"用户中心"
#define Tag_NetPhone @"网络电话"
#define Tag_NetPhoneMoney @"网络电话余额"
#define Tag_PhoneMoneyLog @"网络电话充值记录"
#define Tag_RechargePhoneMoney @"网络电话充值"
#define Tag_RechargePhoneMoneyPay @"网络电话充值支付界面"
#define Tag_NetPhoneSetting @"网络电话设置中心"
#define Tag_NetPhoneAreaCode @"网络电话设置本机号码和区号"
#define Tag_NetPhoneCallingOut @"网络电话呼出"
#define Tag_ExpiryViewController @"兑奖记录"
#define Tag_ToExpiryViewController @"兑奖"



@interface AppConfig : NSObject

@end
